home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / TestParts / DragText / DragCons.h next >
Encoding:
C/C++ Source or Header  |  1997-01-01  |  2.4 KB  |  63 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        DragCons.h
  3.  
  4.     Contains:    Constant definitions for DragText
  5.  
  6.     Owned by:    Craig Carper
  7.  
  8.     Copyright:    © 1993-1995 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <3>    10/13/95    EL        1287340: Use standard ISO prefix
  13.          <2>     6/29/95    CC        Added defaultTextFace constant.
  14.          <1>     6/28/95    CC        first checked in
  15.  
  16. */
  17.  
  18. #ifndef _DRAGCONS_
  19. #define _DRAGCONS_
  20.  
  21. const ODPropertyName    kDragTextPropText            = "+//ISO 9070/ANSI::113722::US::CI LABS::Apple:DragText:Property:Text";            // Text
  22. const ODPropertyName    kDragTextPropStyl            = "+//ISO 9070/ANSI::113722::US::CI LABS::Apple:DragText:Property:Style";        // Style record
  23. const ODPropertyName    kDragTextPropSourceLink        = "+//ISO 9070/ANSI::113722::US::CI LABS::Apple:DragText:Property:SourceLink";
  24. const ODPropertyName    kDragTextPropDestLink        = "+//ISO 9070/ANSI::113722::US::CI LABS::Apple:DragText:Property:DestLink";
  25.  
  26. const ODPropertyName    kDragTextUndoInfo            = "+//ISO 9070/ANSI::113722::US::CI LABS::Apple:DragText:Property:UndoInfo";
  27.  
  28. const ODValueType        kDragTextValue    = "+//ISO 9070/ANSI::113722::US::CI LABS::Apple:DragText:Type:Value";
  29.  
  30. const ODValueType        kODAppleTEXT    = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:TEXT";
  31. const ODValueType        kODApplestyl    = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:styl";
  32. const ODValueType        kODApplestxt    = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:stxt";
  33.  
  34. const ODValueType        kODAppleFileTEXT= "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:FileType:TEXT";
  35. const ODValueType        kODApplehfs        = "+//ISO 9070/ANSI::113722::US::CI LABS::MacOS:ScrapType:hfs ";
  36.  
  37. // DragText error codes
  38. const ODULong    kDragTextErrInvalidLink                = 7787;
  39. const ODULong    kDragTextErrNoSupportedContent        = 7788;
  40. const ODULong    kDragTextErrCannotTranslate            = 7789;
  41. const ODULong    kDragTextErrTranslateLinkError        = 7790;
  42. const ODULong    kDragTextErrCantReadTEXTFile        = 7791;
  43. const ODULong    kDragTextErrFileTooLarge            = 7792;
  44. const ODULong    kDragTextErrTooMuchText                = 7793;
  45. const ODULong    kDragTextBogusTextSize                = 7794;
  46.  
  47. const ODISOStr    kDummyLinkSpecData = "LinkSpec test data";
  48.  
  49. const ODULong    kMaxTextSize = 20000;
  50.  
  51. #define    TopMargin                6
  52. #define    LeftMargin                6
  53. #define    RightMargin                6
  54. #define    BottomMargin            6
  55.  
  56. #define    ScrollResolution        12
  57.  
  58. const ODSShort defaultFontSize    = 12;
  59. const ODSShort defaultFontNum    = 1;    // Application font
  60. const ODSShort defaultFontFace    = 0;    // Plain face
  61.  
  62. #endif // _DRAGCONS_
  63.